<div class="groups index">
	<h1><?php echo __('图片列表');?></h1>
    <div class="bloc">
        <div class="title">
            <span>图片列表</span>
            <p><?php echo $this->Html->link('相册列表',array('plugin'=>'album','admin'=>true,'controller'=>'albums','action'=>'index'));?></p>
        </div>
        <div class="admin_view_table">
			<table>
				<thead>
					<tr>
						<th>Id</th>
						<th>相册</th>
						<th>图片标题</th>
						<th>图片描述</th>
						<th>文件名</th>
						<th>文件大小</th>
						<th>文件类型</th>
						<th>创建时间</th>
						<th>操作</th>
					</tr>
				</thead>
                <tbody>
				<!-- 循环输出数据  -->
					<?php foreach ($albumPicList as $albumPic): ?>
					<tr>
						<td>
							<?php echo $albumPic['AlbumPic']['id']; ?>
						</td>
						<td>
							<?php echo $albumPic['Album']['title']?>
						</td>
						<td>
							<?php echo $albumPic['AlbumPic']['title']?>
						</td>
						<td>
							<?php echo $albumPic['AlbumPic']['description']?>
						</td>
						<td>
							<?php 
							//echo $albumPic['AlbumPic']['file_name']
							echo $this->Html->image($albumPic['AlbumPic']['file_path'],array('width'=>100,'height'=>100));
							?>
						</td>
						<td>
							<?php echo $albumPic['AlbumPic']['file_size']?>
						</td>
						<td>
							<?php echo $albumPic['AlbumPic']['file_type']?>
						</td>
						<td>
							<?php echo $albumPic['AlbumPic']['created']?>
						</td>
						<td>
							<?php //echo $this->html->link('查看',"/album/albumpics/view/".$album_id.'/'.$albumPic['AlbumPic']['id']);?>
							&nbsp;
							<?php echo $this->html->link('禁用','javascript:alert(0);');?>
						</td>
					</tr>
					<?php endforeach; ?>
					 </tbody>
				</table>
 			</div>
        <div class="pv_page">
            <div>
                <?php
                    echo $this->Paginator->counter(array(
                        'format' => __(' {:page}/{:pages}, {:current} {:count} , 当前显示{:start} 至 {:end}')
                    ));
                ?>	
            </div>
            <div class="paging">
                <?php
                    echo $this->Paginator->prev('< ' . __('上一页'), array(), null, array('class' => 'prev disabled'));
                    echo $this->Paginator->numbers(array('separator' => ''));
                    echo $this->Paginator->next(__('下一页') . ' >', array(), null, array('class' => 'next disabled'));
                ?>
            </div>
        </div>
     </div>
</div>
